package com.tulingxueyuan.mall.modules.ums.controller;


import com.tulingxueyuan.mall.common.api.CommonResult;
import com.tulingxueyuan.mall.modules.ums.model.UmsMemberLevel;
import com.tulingxueyuan.mall.modules.ums.service.UmsMemberLevelService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 会员等级表 前端控制器
 * </p>
 *
 * @author XuShu
 * @since 2023-05-24/list?defaultStatus=0
 */
@RestController
@RequestMapping("/memberLevel")
public class UmsMemberLevelController {
    @Resource
    private UmsMemberLevelService umsMemberLevelService;

    @ApiOperation("修改后台菜单")
    @GetMapping("/list")
    public CommonResult list(@RequestParam(value = "defaultStatus",defaultValue = "0")Integer defaultStatus){
        List<UmsMemberLevel> list = umsMemberLevelService.listPage(defaultStatus);
        return CommonResult.success(list);
    }
}

